package service;

import pojo.UserDO;

public interface UserServise {
    /**
     * 根据用户名和密码查询用户
     * @param username
     * @param pwd
     * @return
     */
    UserDO getUser(String username, String pwd);

    /**
     * 根据id查询用户
     * @param name
     * @return
     */
    UserDO getUser(String name);

    /**
     * 存、取、转账
     * @param user
     * @param money
     */
    void depositMoney(String name,Double money);
    void getMoney(String name,Double money) throws Exception;
    void transfer(String saveName,String getName,Double money)throws NullPointerException,Exception,RuntimeException;
}
